<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>overflow</title>

	<style>
		.father {
			/* 清除浮动 */
			/* hidden 溢出隐藏 */
			overflow: hidden;
			width: 400px;
			/*height: 400px;*/
			border: 1px solid #000;
		}

		.aa {
			float: left;
			width: 150px;
			height: 200px;
			background-color: red;
		}

		.bb {
			float: left;
			width: 150px;
			height: 200px;
			background-color: green;
		}

		.cc {
			width: 500px;
			height: 300px;
			background-color: black;
		}
	</style>
</head>
<body>
	<div class="father">
		<div class="aa"></div>
		<div class="bb"></div>
	</div>
	<div class="cc"></div>
</body>
</html>